package com.huc.design.behavior.strategy.base;

/**
 * @author huc
 * @version 1.0
 * @note 上下文
 * @date 2021/10/7 14:48
 */
public class Context {
    private final Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public void doAnything() {
        this.strategy.doSomething();
    }
}
